﻿@{
    Layout = null;
}



<h2>一.单选题</h2>
    <ol type="1">
@{
        foreach(var item in ViewBag.Exam as List<XT.Exam.MODEL.ExaminationPaper>) 
        {
        if(item.ExamTypeID==1)
        { 
        <li>
            <p>@item.ExaminationPaper_Name</p>
            
            <ol type="A">
                  @{
            foreach (var i in ViewBag.Options)
            {
                if (i.ExaminationPaperID == item.ID)
                {
                     <li><input type="radio" name="txt" /> @i.OptionsContent</li>
                }

            }

                }
                
            </ol>
        </li>

        }
        }
        }
    </ol>
<h2>二.多选题</h2>
<ol type="1">
    @{
        foreach (var item in ViewBag.Exam as List<XT.Exam.MODEL.ExaminationPaper>)
        {
            if (item.ExamTypeID == 2)
            {
                <li>
                    <p>@item.ExaminationPaper_Name</p>

                    <ol type="A">
                        @{
                foreach (var i in ViewBag.Options)
                {
                    if (i.ExaminationPaperID == item.ID)
                    {
                        <li><input type="checkbox" name="check" /> @i.OptionsContent</li>
                    }

                }

                        }

                    </ol>
                </li>

            }
        }
    }
</ol>
<h2>三.判断</h2>
<ol type="1">
    @{
        foreach (var item in ViewBag.Exam as List<XT.Exam.MODEL.ExaminationPaper>)
        {
            if (item.ExamTypeID == 3)
            {
                <li>
                    <p>@item.ExaminationPaper_Name</p>
                    <ol style="list-style:none">

                <li>
                    <input type="radio" name="txt" value="对" />对
                    <input type="radio" name="txt" value="错" />错

                </li>
            </ol>

               </li>

                        

                   

            }
        }
    }
</ol>



